<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="__ROOT__/Public/Admin/shortcut icon" href="favicon.ico">
	<link href="__ROOT__/Public/Admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="__ROOT__/Public/Admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
	<link href="__ROOT__/Public/Admin/css/style.css?v=4.1.0" rel="stylesheet">
	<link href="__ROOT__/Public/Admin/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/default.css" rel="stylesheet">
	<link href="__ROOT__/Public/Admin/css/official.css" rel="stylesheet">
	<link href="__ROOT__/Public/Admin/css/animate.css" rel="stylesheet">
	
    <script>
        var CC = {
            "PUBLIC":"__PUBLIC__",
            "ROOT":"__ROOT__",
            "APP":"__APP__",
        };
    </script>

    <style>
        .nav-tabs{
            margin-bottom: 20px;
        }
        .err-tip-color{
            color:#ed2a2a;
        }
        #content-main{height: calc(100%) !important;}
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#"><i class="fa fa-user"></i> 列表</a>
                </li>

                <li class=""><a href="{:U('Admin/Business/add')}"><i class="fa fa-plus"></i> 添加</a></li>

            </ul>
            <form class="well form-search form-inline" action="{:U('Admin/Business/index')}" method="post" enctype="multipart/form-data">
                <div class="input-group">
                    <input type="text" name="keyword" placeholder="查找业务" value="{:I('request.keyword/s','')}" class="input form-control" >
                    <span class="input-group-btn">
                                    <button type="submit" class="btn btn-search"> <i class="fa fa-search"></i> 搜索</button>
                                </span>
                </div>
            </form>
            <table class="table table-bordered table-striped text-center" id="cates-table">
                <thead id="thead">
                <tr>
                    <th width="50px">序号</th>
                    <th width="100px">业务名</th>
                    <th>说明</th>
                    <th width="150px">创建时间</th>
                    <th width="250px">操作</th>
                </tr>
                </thead>
                <tbody>
                <if condition="count($list) lt 1">
                    <tr>
                        <td colspan="5">查无数据</td>
                    </tr>
                    <else/>
                    <foreach name="list" item="vo">
                        <tr>
                            <td>{$key + 1}</td>
                            <td>{$vo.Name}</td>
                            <td>{$vo.Memo}</td>
                            <td>{$vo.CreateTime}</td>
                            <td>
                                <a class="edit-user label label-success"  href="<?=U('Admin/Business/setting',array('id'=>$vo['ID']))?>">配置</a>
                                <a class="edit-user label label-primary"  href="<?=U('Admin/Business/edit',array('id'=>$vo['ID']))?>">编辑</a>
                                <a class="delete-user label label-danger js-ajax-delete"  href="<?=U('Admin/Business/delete',array('id'=>$vo['ID']))?>">删除</a>
                            </td>
                        </tr>
                    </foreach>
                </if>
                </tbody>
            </table>
            {$page}
        </div>
    </div>
</div>
<script>
    var GV = {
        ROOT: "__ROOT__/",
        WEB_ROOT: "__ROOT__/",
        JS_ROOT: "Public/Admin/js/"
    };
</script>
<script type="text/javascript" src="__ROOT__/Public/Admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Admin/js/wind.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Admin/js/common.js"></script>
</body>
</html>